package megalopolis.server;

import megalopolis.common.ManagableThread;

/**
 * User: Kirill
 * Date: 19.02.2008
 */
public class EngineThread extends ManagableThread {

	private RequestHandler requestHandler;

	private NetworkHandler network;

	public EngineThread(World world, NetworkHandler network) {
		super(100);
		this.network = network;
		requestHandler = new RequestHandler(network, world);
	}

	public void threadStep() {
		requestHandler.handleRequests(network.getNextRequestPortion());
	}

}
